home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1988 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  2.0 KB  |  62 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1 && _root.birdtaken != 1)
  3.    {
  4.       if(_root.micon._currentframe == 40 && _root.range == true)
  5.       {
  6.          _root.next_dis1 = 2;
  7.          _root.next_txt1 = "I\'m not in the mood for Kentucky Fried Chicken";
  8.       }
  9.       if(_root.birdtalk == 1)
  10.       {
  11.          if(_root.micon._currentframe == 1 && _root.range == true)
  12.          {
  13.             _root.sfx.gotoAndStop(3);
  14.             _root.take = 56;
  15.             _root.birdtaken = 1;
  16.             _root.next_dis1 = 2;
  17.             _root.next_txt1 = "This parrot may come in handy to get out of here with a vocie like that.";
  18.          }
  19.          if(_root.micon._currentframe == 2)
  20.          {
  21.             _root.next_dis1 = 2;
  22.             _root.next_txt1 = "Oddly enough, that bird sounds just like the Principal...";
  23.          }
  24.       }
  25.       else
  26.       {
  27.          if(_root.micon._currentframe == 1 && _root.range == true)
  28.          {
  29.             _root.next_dis1 = 2;
  30.             _root.next_txt1 = "What am I going to do with a bird?";
  31.          }
  32.          if(_root.micon._currentframe == 2)
  33.          {
  34.             _root.next_dis1 = 2;
  35.             _root.next_txt1 = "It\'s just some talking parrot.";
  36.          }
  37.       }
  38.       if(_root.micon._currentframe == 4 && _root.range == true && _root.txt_number <= 1)
  39.       {
  40.          if(_root.birdtalk == 1)
  41.          {
  42.             _root.next_dis1 = 2;
  43.             _root.next_txt1 = "It\'d be best if I didn\'t engage in conversation with that thing.";
  44.          }
  45.          else
  46.          {
  47.             _root.birdtalk = 1;
  48.             _root.txt_number = 3;
  49.             _root.next_dis3 = 2;
  50.             _root.di3 = 540;
  51.             _root.next_txt3 = "Polly want a cracker?";
  52.             _root.next_txt2 = "Polly want to bite off your finger if you call me Polly again!";
  53.             _root.di2 = 541;
  54.             _root.next_dis2 = 16;
  55.             _root.next_txt1 = "Crazy bird!";
  56.             _root.di1 = 542;
  57.             _root.next_dis1 = 2;
  58.          }
  59.       }
  60.    }
  61. }
  62.